package com.baseweb.webadmin.core.model.dao;

import com.baseweb.webadmin.core.model.pojo.ByCoinsLog;
import com.baseweb.webadmin.core.model.pojo.ByUserVoucher;
import com.baseweb.webadmin.core.model.pojo.ByUserWithdraw;
import com.baseweb.webadmin.core.model.pojo.ByUserWithdrawAccount;

import java.util.List;

public interface AccountDao {

    public Integer insertVoucher(ByUserVoucher byUserVoucher);
    public ByUserVoucher findVoucher(Integer id);
    public List<ByUserVoucher> selectVoucherListByPage(Integer userId, Integer start, Integer offset);
    public Integer selectVoucherListCount(Integer userId);


    public Integer insertWithdrawAccount(ByUserWithdrawAccount byUserWithdrawAccount);
    public ByUserWithdrawAccount findWithdrawAccount(Integer id);
    public List<ByUserWithdrawAccount> selectWithdrawAccountListByPage(Integer userId, Integer start, Integer offset);
    public Integer selectWithdrawAccountListCount(Integer userId);

    public Integer insertWithdraw(ByUserWithdraw byUserWithdraw);
    public ByUserWithdraw findWithdraw(Integer id);
    public List<ByUserWithdraw> selectWithdrawListByPage(List<Integer> userIds, Integer start, Integer offset);
    public Integer selectWithdrawListCount(List<Integer> userIds);
}
